package com.example.springboot.entity;

import java.io.Serializable;

/**
 * Story实体类
 * 对应数据库中的story表
 */
public class Story implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 故事ID，主键
     */
    private String storyId;

    /**
     * 用户ID，外键关联用户表
     */
    private Integer userId;

    /**
     * 故事标签
     */
    private String storyTag;

    /**
     * 故事生活内容
     */
    private String storyLife;

    /**
     * 故事是否可分享 (1:可分享, 0:不可分享)
     */
    private Integer isStorySharable;

    /**
     * 故事分类
     * 1: 感谢类
     * 2: 回忆类
     * 3: 其他类型
     */
    private Integer storyClassification;

    /**
     * 感谢内容
     */
    private String fimThanks;

    /**
     * 道歉内容
     */
    private String fimApology;

    /**
     * 爱的表达内容
     */
    private String fimLove;

    /**
     * 告别内容
     */
    private String fimFarewell;

    /**
     * 愿望内容
     */
    private String fimWish;

    /**
     * 故事标题
     */
    private String storyTitle;

    /**
     * 是否可分享FIM内容 (1:可分享, 0:不可分享)
     */
    private Integer idFimSharable;

    // Getters and Setters

    public String getStoryId() {
        return storyId;
    }

    public void setStoryId(String storyId) {
        this.storyId = storyId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getStoryTag() {
        return storyTag;
    }

    public void setStoryTag(String storyTag) {
        this.storyTag = storyTag;
    }

    public String getStoryLife() {
        return storyLife;
    }

    public void setStoryLife(String storyLife) {
        this.storyLife = storyLife;
    }

    public Integer getIsStorySharable() {
        return isStorySharable;
    }

    public void setIsStorySharable(Integer isStorySharable) {
        this.isStorySharable = isStorySharable;
    }

    public Integer getStoryClassification() {
        return storyClassification;
    }

    public void setStoryClassification(Integer storyClassification) {
        this.storyClassification = storyClassification;
    }

    public String getFimThanks() {
        return fimThanks;
    }

    public void setFimThanks(String fimThanks) {
        this.fimThanks = fimThanks;
    }

    public String getFimApology() {
        return fimApology;
    }

    public void setFimApology(String fimApology) {
        this.fimApology = fimApology;
    }

    public String getFimLove() {
        return fimLove;
    }

    public void setFimLove(String fimLove) {
        this.fimLove = fimLove;
    }

    public String getFimFarewell() {
        return fimFarewell;
    }

    public void setFimFarewell(String fimFarewell) {
        this.fimFarewell = fimFarewell;
    }

    public String getFimWish() {
        return fimWish;
    }

    public void setFimWish(String fimWish) {
        this.fimWish = fimWish;
    }

    public String getStoryTitle() {
        return storyTitle;
    }

    public void setStoryTitle(String storyTitle) {
        this.storyTitle = storyTitle;
    }

    public Integer getIdFimSharable() {
        return idFimSharable;
    }

    public void setIdFimSharable(Integer idFimSharable) {
        this.idFimSharable = idFimSharable;
    }

    @Override
    public String toString() {
        return "Story{" +
                "storyId='" + storyId + '\'' +
                ", userId=" + userId +
                ", storyTag='" + storyTag + '\'' +
                ", storyLife='" + storyLife + '\'' +
                ", isStorySharable=" + isStorySharable +
                ", storyClassification=" + storyClassification +
                ", storyTitle='" + storyTitle + '\'' +
                ", idFimSharable=" + idFimSharable +
                '}';
    }
}